#!/bin/sh

#free -h | awk '/^内存/ {used=$3; total=$2; sub("G", "", used); sub("G", "", total); printf "%.2f/%.2f\n", used, total}' | awk -F '/' '{printf "%.0f%%\n", $1/$2 }'
#free --mebi | sed -n '2{p;q}' | awk '{printf ("🧠:%2.2fGB/%2.2fGB\n", ($3 / 1024)/ ($2 / 1024)*100)}'
#free --mebi | sed -n '2{p;q}' | awk '{printf ("🧠:%2.2fGB/%2.2fGB\n", ($3 / 1024), ($2 / 1024))}'

free --mebi | sed -n '2{p;q}' | awk '{printf ("󰍛 %.2f%%\n", ($3 / 1024) / ($2 / 1024) * 100)}'
